package com.demo.principle.liSubstitution;

public class LiSubstitution2 {
    public static void main(String[] args) {
        A a = new A();
        System.out.println(a.func1(11, 3));

        B b = new B();
        System.out.println(b.func1(11, 3));
    }
}

class Base {
    public int func1(int num1, int num2) {
        return num1 - num2;
    }
}

class C extends Base {

}

class D extends C {

    public int func2(int num1, int num2) {
        return func1(num1, num2) + 9;
    }
}